
import AppManagement from 'AppManagement';
import { useHistory } from 'react-router';
import styles from './index.module.less';
import Mic from 'component/Mic';

export default function Home() {

    const frontDesk = AppManagement.instance.useMemo(s => s.frontDesk, []);

    const history = useHistory();

    if (!frontDesk) return <></>;

    return (
        <Mic className={styles.home} id={frontDesk} history={history} />
    );
}